package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.Building;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2024-07-17
 */
public interface BuildingMapper extends BaseMapper<Building> {
    @Select("SELECT DISTINCT buildingName FROM mydb.building WHERE isDeleted=0")
    List<String> getAllBuildingNames();

}
